#include "hzpch.h"
#include "Log.h"
#include "spdlog/sinks/stdout_color_sinks.h"

namespace Hazal
{
	Ref<spdlog::logger> CLog::s_CoreLogger;
	Ref<spdlog::logger> CLog::s_ClientLogger;

	CLog::CLog()
	{
	}

	CLog::~CLog()
	{
	}

	void CLog::Init()
	{
		spdlog::set_pattern("%^[%T] %n: %v%$");
		s_CoreLogger = spdlog::stdout_color_mt("HAZAL");
		s_CoreLogger->set_level(spdlog::level::trace);

		s_ClientLogger = spdlog::stdout_color_mt("APP");
		s_ClientLogger->set_level(spdlog::level::trace);

		LOG_CORE_INFO("Init log system");
	}
}